package com.sl.au.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 商户考核实体信息
 * 
 * @author heguangchuan
 *
 */
@Entity
@Table(name = "sl_dcms_check")
public class BussinessCheck extends Root {

	@ManyToOne(cascade={CascadeType.MERGE})
	@JoinColumn(name = "userId")
	// 考核人员
	private User user;

	// 考核日期
	private Date checkDate;

	// 被考核商户
	@ManyToOne
	@JoinColumn(name = "bussinessId")
	private BusinesssellerBaseInfo businesssellerBaseInfo;
	// 考核情况
	private String checkCondition;
	// 整改情况
	private String rectifyCondition;
	// 备注
	private String remark;
	
	private String pictureAddr;
	
	@Column(nullable = true)
	private double longitude;//经度
	
	@Column(nullable = true)
	private double latitude;//纬度
	
	
	public String getPictureAddr() {
		return pictureAddr;
	}

	public void setPictureAddr(String pictureAddr) {
		this.pictureAddr = pictureAddr;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	public BusinesssellerBaseInfo getBusinesssellerBaseInfo() {
		return businesssellerBaseInfo;
	}

	public void setBusinesssellerBaseInfo(BusinesssellerBaseInfo businesssellerBaseInfo) {
		this.businesssellerBaseInfo = businesssellerBaseInfo;
	}

	public String getCheckCondition() {
		return checkCondition;
	}

	public void setCheckCondition(String checkCondition) {
		this.checkCondition = checkCondition;
	}

	public String getRectifyCondition() {
		return rectifyCondition;
	}

	public void setRectifyCondition(String rectifyCondition) {
		this.rectifyCondition = rectifyCondition;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
